package com.tengol.demo.design.pattern.creational.prototype.simple;

/**
 * 定义一个邮件发送模板
 *
 * @author dongrui
 * @date 2019/03/01
 */
public class MailTemplate implements Cloneable{
    private String name;
    private String emailAddress;
    private String content;

    public MailTemplate() {
        System.out.println("MainTemple instance created successfully! ");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getEmailAddress() {
        return emailAddress;
    }

    public void setEmailAddress(String emailAddress) {
        this.emailAddress = emailAddress;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "MailTemplate{" +
                "name='" + name + '\'' +
                ", emailAddress='" + emailAddress + '\'' +
                ", content='" + content + '\'' +
                '}';
    }


    @Override
    public Object clone() throws CloneNotSupportedException {
        return super.clone();
    }
}
